﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;

namespace Wodewick
{
	class Program
	{
		static void Main(string[] args)
		{
			var quit = false;
			Console.CancelKeyPress += (s, e) => quit = true;
			Console.WriteLine("Ctrl+C to exit");

			while (!quit)
			{
				Console.WriteLine("Hit me");
				var line = Console.ReadLine();

				int number;
				if(!int.TryParse(line, out number))
				{
					Console.WriteLine("That's not a number.");
					continue;
				}

				var biggus = new Biggus();
				var numerals = biggus.Convert(number);

				Console.WriteLine(numerals);
			}
		}
	}
}
